These files are intended for use with Microsoft Visual C++. This directory contains the following files:

	readme.txt - this file
	LB_API2.dll - driver
	LB_API2.lib - driver lib file 
	LB_API2.h - driver header file
	USBDRVD.dll - USB driver referenced and required by LB_API2.dll

These files were built using Microsoft Visual Studio 2005. The driver calls exported by LB_API2.dll and listed in the header file are described in the programming manuals. All of the calls for the power meter and pulse profiling are included in this library. 

There are a great many calls. In order to help sort things out a bit LadyBug has adopted the following convention. General purpose and power meter calls are prefixed with LB_. For instanace:

	LB_InitializeSensor_Addr(long addr);
	LB_SetFrequency(long addr, double value);
	LB_MeasureCW(long addr, double* CW);
	LB_MeasurePulse(long addr, double* pulse, double* peak, double* average, double* dutyCycle);

Pulse profiling calls are prefixed with PP_. For instanace:

	PP_GetAvgMode(long addr, AVG_MODE *mode);
	PP_GetGateStartTime(long addr, long gateIdx, double* gateTm);
	PP_SetGateMode(long addr, long gateIdx, GATE_MODE mode);	
	PP_GetTrace(long addr, double *tr, long trLen, long* trUsed);

The programming manuals for the power meter and pulse profiling describe a subset appropriate to each purpose. These are available in the documentation directory on flash drive. The calling convention used by the driver is the standard calling convention (i.e. "__stdcall" ). This is the same calling convention used by many of the Windows libraries.

The test harnesses sample code (C++, C# and VB.NET) can be helpful in understanding the calls intended use.  These test harnesses use the same calls and link to LB_API2.dll. The interactive nature of the C# and VB.NET test harnesses and be especially helpful.
